/*
 *  binding.cpp
 *  Sinnca engine demo
 *
 *  Created by Ryan Oldis on 7/3/10.
 *  Copyright 2010 __MyCompanyName__. All rights reserved.
 *
 */


#include "script.h"

#include "Node.h"
#include "Texture.h"
#include "input.h"


void luaScript::bindFunctions()
{
	
	
	
	registerNode(L);
	registerScene(L);
	registerEntity(L);
	
	registerTexture(L);
	
	// create the tree
	tree->setup(L);
	
		// Input functions
	lua_register(L, "buttonDown", l_buttonDown);
	lua_register(L, "analogAxis", l_analogAxis);
	
	lua_register(L, "keyDown", l_keyDown);
	lua_register(L, "getMouseCo", l_getMouseCo);
	
	/*
	// Scene functions
		// EntityManager functions
	
	lua_register( L, "_addEntity", l_addEntity );
	lua_register( L, "_deleteEntity", l_deleteEntity );
	lua_register( L, "_movePos", l_movePos );
	lua_register( L, "_setType", l_setType );
	
	lua_register( L, "_setColor", l_setColor);
	lua_register( L, "_setTexture", l_setTexture);
	
	lua_register(L, "_updatePositions", l_updatePositions);
	
	lua_register(L, "deleteAllEnts", l_deleteAllEnt);
	
	
		// SceneManager function
	lua_register(L, "_addScene", l_addScene);
	lua_register(L, "_deleteScene", l_deleteScene);
	
	//lua_register(L, "_setScene", l_setScene);
	
	

	
	// Graphics functions
		// TextureManager functions
	
	lua_register( L, "addTexture", l_addTexture);
	
	lua_register(L, "moveCamera", l_moveCamera);
	lua_register(L, "setTarget", l_setTarget);
	
	// Audio functions
	
	lua_register(L, "_addSound", l_addSound);
	
	lua_register(L, "_play", l_play);
	lua_register(L, "_pause", l_pause);
	lua_register(L, "_resume", l_resume);
	lua_register(L, "_stop", l_stop);
	*/
	
}